/*
 * @Author: 老刘
 * @Date: 2020-04-29 15:51:38
 * @Description: canvas列表
 */
import { go } from '../../../utils/util.js';
Page({
	data: {
		canvasList: [
			{title: '生成海报', ico: 'weather', url: 'posters', status: ''},
			{title: '生成海报(wxml)', ico: 'weather', url: 'posters_for_wxml', status: ''},
			{title: '生成二维码', ico: 'weather', url: 'get_qr_code', status: ''},
			{title: '拍照', ico: 'weather', url: 'taking_pictures', status: ''}
		]
	},
	handleGo (e) {
		const url = e.currentTarget.dataset.url;
		go(`/pages/canvas/${url}/${url}`);
	}
});
